<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>登录</title>
<script type="text/javascript" src="/statics/js/jquery-1.11.3.min.js"></script>
</head>
<body>
<button id="test" onclick="test()">1</button>
</body>
<script type="text/javascript">
function test(){
	$.ajax({
		url: '/web/note/test', // 跳转到 action  
		type: 'get',
		data:{_method:"trace"}, 
		cache: false,
		dataType: 'json',
		async: false,
		success: function(data) {
			if (data.code = 200) {
				alert(data.message);
			}
		},
		error: function() {
			alert("异常！");
		}
	});
	
}
</script>
</html>